<template>
  <div>
    <div class="dialog" v-show="showGuide">
      <button @click="close">close</button>
    </div>
  </div>
</template>

<script>
export default {
  name: "test-toast",
  data() {
    return {
      text: "123",
      showGuide: false,
    };
  },
  created() {
    // this.showGuide = true;
  },
  methods: {
    toastPlugin(el) {
      el.setAttribute("style", "z-index:9999");
      this.showGuide = true;
    },
    close() {
      this.showGuide = false;
    },
  },
};
</script>

<style scoped>
.dialog {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  text-align: center;
  background: rgba(0, 0, 0, 0.5);
  transition: all 0.5s;
  z-index: 9;
}
</style>